<script type="text/javascript" src="eatmatch.js"></script> 

<script>
    var a = new eatmatch();
    a.test();
</script>